package xyz.jcat.biz.member.domain.vo;

import lombok.Getter;
import lombok.Setter;
import xyz.jcat.biz.member.api.domain.vo.MemberSimpleInfoVo;
import xyz.jcat.biz.member.domain.po.MemberPo;

@Getter
@Setter
public class LoginSuccessVo {

    private String token;
    private MemberSimpleInfoVo memberInfo;

    public LoginSuccessVo(String token, MemberPo member) {
        this.token = token;
        this.memberInfo = new MemberSimpleInfoVo(member.getId(), member.getNickname(), member.getAvatar());
    }
}
